<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>


<s:if test="%{adverts.size() > 0}">    
	<s:iterator id="advert" value="adverts">
		<div class="advert">
				<div>
					<div class="label"><s:text name="common.advert.from"></s:text>:</div>
					<span><s:property id="advert" value="gallery.owner.userName" /></span>
				</div>
				<div>
					<div class="label"><s:text name="common.advert.gallery"></s:text>:</div>
					<span><s:property id="advert" value="gallery.name" /></span>
				</div>
				<div>
					<div class="label"><s:text name="common.advert.text"></s:text>:</div>
					<span><s:property id="advert" value="aText" /></span>
				</div>
				<div style="text-align: right; width: 300px;">				
					<a class="action" 
							href="../galleries/Images.action?mode=PL&galleryId=<s:property id="advert" value="gallery.id"/>">
						<s:text name="common.visit" />
					</a>&nbsp;
					<a class="action" 
							href="../galleries/Galleries.action?mode=AP&galleryId=<s:property value="galleryId"/>">
						<s:text name="common.delete" />
					</a>&nbsp;
				</div>
		</div>
	</s:iterator>
</s:if>
<s:else>
	<s:text name="common.advert.none"></s:text>
</s:else>